package play.modules.market;

import play.Logger;
import play.mvc.Router;
import play.PlayPlugin;

/**
 * The Class MarketPlugin.
 * 
 * @author David Basoko (david.basoko@m4f.es)
 * @copyright m4f (http://m4f.es)
 */
public class MarketPlugin extends PlayPlugin {
	/**
     * Load
     * 
     * @see play.PlayPlugin#onLoad()()
     */
    @Override
    public void onLoad() {
    	Logger.info("MarketPlugin.onLoad()");
    }
    
    /**
     * Start
     * 
     * @see play.PlayPlugin#onApplicationStart()
     */
    @Override
    public void onApplicationStart() {
    	Logger.info("MarketPlugin.onApplicationStart");
    }
    
    /**
     * Routes
     * 
     * @see play.PlayPlugin#onRoutesLoaded()
     */
    @Override
    public void onRoutesLoaded() {
		Logger.info("MarketPlugin.onRoutesLoaded");
        Router.addRoute("GET", "/market/login", "MarketController.login");
    }
}
